%greek encode

color_dim = 75;
encoder_step = 4;

real_feature = feature(:, 1:color_dim) * encoder_step;

real_feature_encode = real_feature;

for i = 2:encoder_step
    real_feature = real_feature - 1;
    real_feature_encode = [ real_feature_encode real_feature];
end

real_feature_encode = min(real_feature_encode,1);
real_feature_encode = max(real_feature_encode,0);

binary_feature = feature( :, color_dim+1:end);

feature = [real_feature_encode binary_feature];